<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="lastActiveUsers">
	<table class="body" border="0" cellspacing="0" cellpadding="2">
	<tr><td colspan="3" align="center">Ultimi 10 partecipanti:</td></tr>
	<xsl:for-each select="user">
		<tr>
		<td align="right">
		<xsl:choose>
			<xsl:when test='@answerid="24" or @answerid="26"'>
				<img src="/imgs/m-face.gif"/>
			</xsl:when>
			<xsl:when test='@answerid="25" or @answerid="27"'>
				<img src="/imgs/w-face.gif"/>
			</xsl:when>
		</xsl:choose>
		</td>
		<td align="left">
			<a style="color:#006699;" href="/profileShow.aspx?userGuid={@userid}"><xsl:value-of select="@nick"/></a>
		</td>
		<td class="body_10px_red" align="right">
		<xsl:choose>
			<xsl:when test="/lastActiveUsers/@logged">
				<a style="color:#CC0000;" href="invite2Activity.aspx?activityId={/lastActiveUsers/@activityId}&amp;userGuid={@userid}">invita</a>
			</xsl:when>
			<xsl:otherwise>
				<span class="fakeA" onmouseover="ShowTooltipRight('1scrivi');" onmouseout="HideTooltip('1scrivi');">invita</span>
			</xsl:otherwise>
		</xsl:choose>
		</td>
		</tr>
	</xsl:for-each>
	<xsl:if test="count(user)=0">
		<tr>
		<td align="right">
			<b>Nessuno ha mai partecipato!</b>
		</td>
		</tr>
	</xsl:if>
	</table>
</xsl:template>

</xsl:stylesheet>